
.sprite-width(@sprite) {
  width: nth(@sprite, 5);
}
.sprite-height(@sprite) {
  height: nth(@sprite, 6);
}
.sprite-position(@sprite) {
  @sprite-offset-x: nth(@sprite, 3);
  @sprite-offset-y: nth(@sprite, 4);
  background-position: @sprite-offset-x  @sprite-offset-y;
}
.sprite-size(@sprite) {
  @sprite-width: nth(@sprite, 7);
  @sprite-height: nth(@sprite, 8);
  background-size: @sprite-width  @sprite-height;
}
.sprite-image(@sprite) {
  @sprite-image: nth(@sprite, 9);
  background-image: url(#{@sprite-image});
}
.sprite(@sprite) {
  .sprite-image(@sprite);
  .sprite-position(@sprite);
  .sprite-size(@sprite);
  .sprite-width(@sprite);
  .sprite-height(@sprite);
  background-repeat: no-repeat;
}
.for(@sprites); .-each(@name) {
  &.@{name} {background: @@name}
  @sprite-name: nth(@sprite, 10);
  #@{sprite-name} {
    .sprite(@sprite);
  }
}
